package com.zy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zy.mapper.ZyRoleMapper;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.beans.Transient;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZyUser implements Serializable {

    /**
     * 用户表
     *
     * userId
     * username
     * password
     * nickname 昵称
     * phone 电话号码
     * email 邮箱
     * roleId 权限id
     * flag 是否禁用该用户 /0禁用 1启用
     */
    private Integer userId;
    private String username;
    private String password;
    private String nickname;
    private String phone;
    private String email;
    private Integer flag;

}
